package com.guiji.quartz.task;

import com.guiji.quartz.domain.ChinaDaily2;
import com.guiji.quartz.domain.XinhuaEnglishSport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @create: 2021-09-02 16:24
 **/
@Component("xinhuaEnglishSportTask")
public class XinhuaEnglishSportTask {
	private static final Logger log = LoggerFactory.getLogger(XinhuaEnglishSportTask.class);
	public void xinhuaEnglishSportTask() {
		Long startTime = System.currentTimeMillis();
		XinhuaEnglishSport xinhuaEnglishSport = new XinhuaEnglishSport();
		try {
			xinhuaEnglishSport.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("xinhuaEnglishSportTask-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
}
